<%-- ** mmdb_home.jsp **
-UI for simple search
-user selected category from drop-down and 
enters search term
-has link to refined search
--%>

<%@page import="javax.servlet.http.*"%>

<HTML>
	<HEAD>
		<TITLE>Multimedia Database: Home </TITLE>
	</HEAD>
	
	<BODY>
		<H1>Welcome to the Multimedia Database!</H1>
		<H3>
			Select a search category to search for an item by name or
			click "More Options" to refine your search.
		</H3>
		<!-- uses the query string "simple" to indicate the type of search -->
		<FORM NAME="search" ACTION="mmdb_result.jsp?simple" METHOD="POST">
		<!-- user picks the category to search in and enters the name of what they are looking for -->
			In <SELECT NAME="category">
				<OPTION>Person</OPTION>
				<OPTION>Movie</OPTION>
				<OPTION>TV Show</OPTION>
				<OPTION>Radio Show</OPTION>
				<OPTION>Character</OPTION>
				<OPTION>Studio</OPTION>
				<OPTION>Award</OPTION>
				</SELECT>
				
			 search for <INPUT TYPE="TEXT" SIZE=50 NAME="term"> <BR><BR>
			<INPUT TYPE="SUBMIT" value="Submit">
		</FORM>
		<table border="3">
		<tr>
		<!-- takes the user to the refined search page -->
		<td><a href="http://localhost:8080/mmdb_option.jsp">More Options</a></td>
		</tr>
		</table>
		
		<BR><BR>
		<!-- takes the user to the page with the 5 complicated queries -->
		Click <a href="http://localhost:8080/mmdb_complicated.jsp">here</a> to try some more complicated queries.
		
	</BODY>
</HTML>